package com.h3c.ptability.entity;

import java.util.Date;
import javax.persistence.*;
    import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: PtRoleCaculate
 *
 * @Author: l22886
 * @Date: 2022-03-14
 * Description: pt_role_caculate 实体
 * Version: 1.0
 */
@ApiModel(value="PtRoleCaculate对象", description="")
@Table(name = "pt_role_caculate")
public class PtRoleCaculate {


    @ApiModelProperty(value = "动态角色计算规则ID")
    @Column(name = "rule_id")
    private String ruleId;

    @ApiModelProperty(value = "规则名称")
    @Column(name = "rule_name")
    private String ruleName;

    @ApiModelProperty(value = "应用ID")
    @Column(name = "app_id")
    private String appId;

    @ApiModelProperty(value = "计算方法:1 sql;2 api;")
    @Column(name = "caculate_type")
    private Integer caculateType;

    @ApiModelProperty(value = "计算规则配置值")
    @Column(name = "caculate_content")
    private String caculateContent;

    @ApiModelProperty(value = "结果匹配角色规则JSON字符串")
    @Column(name = "result_match_rule")
    private String resultMatchRule;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @Column(name = "creator_id")
    private String creatorId;

    public String getRuleId() {
        return ruleId;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public Integer getCaculateType() {
        return caculateType;
    }

    public void setCaculateType(Integer caculateType) {
        this.caculateType = caculateType;
    }

    public String getCaculateContent() {
        return caculateContent;
    }

    public void setCaculateContent(String caculateContent) {
        this.caculateContent = caculateContent;
    }

    public String getResultMatchRule() {
        return resultMatchRule;
    }

    public void setResultMatchRule(String resultMatchRule) {
        this.resultMatchRule = resultMatchRule;
    }

    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    @Override
    public String toString() {
        return "PtRoleCaculate{" +
                "ruleId=" + ruleId +
                ", ruleName=" + ruleName +
                ", appId=" + appId +
                ", caculateType=" + caculateType +
                ", caculateContent=" + caculateContent +
                ", resultMatchRule=" + resultMatchRule +
                ", createTime=" + createTime +
                ", creatorId=" + creatorId +
                "}";
    }
}
